/**
 * @author whailong  [wanghl@ncsi.com.cn]
 * @date 16 Jun 2014 10:50:58
 */
package com.surent.controller.fragment;

import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;

import com.hailong.surent.R;
import com.lidroid.xutils.ViewUtils;
import com.lidroid.xutils.view.annotation.event.OnItemClick;

/**
 * 
 * @author whailong [whailong2010@gmail.com]
 * @date 16 Jun 2014 10:50:58
 */
public class FragChat extends Fragment {

	private Activity atyParent;

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		this.setHasOptionsMenu(true);
		return inflater.inflate(R.layout.frag_chat, null);
	}

	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);

		atyParent = getActivity();
		ViewUtils.inject(this, atyParent);
	}

	@OnItemClick(R.id.lv_fragChat_chatList)
	void onLvChumItemOnClick(AdapterView<?> parent, View view, int position, long id) {

	}

	@Override
	public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
		inflater.inflate(R.menu.frag_chum, menu);
		super.onCreateOptionsMenu(menu, inflater);
	}
}
